<template>
  <div id="goods">
    
    <h2>商品基础设置</h2>
    <hr>
    
    <!--4个功能模块-->
     <!-- <div class="top-big-box">    
      <div class="box1">石料基础设置</div>
      <div class="box1">商品基本资料设置</div>
      <div @click="showProductCode" class="box1">产品编码表</div>
      <div class="box1">批发销售工费管理</div>
      <p>22222</p>
    </div> -->

    <div class="nav">
      <router-link class="link" to="/goods/newpro">产品编码表</router-link>
      <router-link class="link" to="/goods/costmng">批发销售工费管理</router-link>
      
    </div>
    <div class="content">
      <router-view />
    </div>



  </div>
</template>

<script>

export default {

  name:'goods',
  components:{

  },


  methods: {
    handleClick(row) {
      console.log(row);
    },
    handleSelectionChange(val) {
        this.multipleSelection = val;
      },
    closeCodeTable(){
     let a=document.getElementsByClassName('product-code-show')[0]
     a.style.display='none'
    }


  },

  
};
</script>


<style>
* {
  margin: 0;
  padding: 0;
}
h2 {
  margin-left: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
}




.nav{
  margin-top: 30px;
}
a{
  text-decoration: none;
  display: inline-block;
  width: 200px;
  height: 100px;
  line-height: 100px;
  border-radius: 10px;
  margin-left: 30px;
  text-align: center;
  color: whitesmoke;
}
a:nth-child(1){
  background-color: #79c5ff;
}
a:nth-child(2){
  background-color: #7266ba;
  margin-left: 50px;
}

</style>
